#ifndef XINGZUO_H
#define XINGZUO_H

#include <QWidget>
#include<QNetworkReply>
#include<QNetworkRequest>
#include<QNetworkReply>
#include<QDebug>
#include<QJsonParseError>
#include<QJsonDocument>
#include<QJsonObject>
#include<QJsonValue>
#include<QNetworkAccessManager>
#include<QUrl>
#include<QStringList>
#include<QMouseEvent>
#include<QPaintEvent>

namespace Ui {
class xingzuo;
}

class xingzuo : public QWidget
{
    Q_OBJECT

public:
    explicit xingzuo(QWidget *parent = nullptr);
    ~xingzuo();
    void get();
    void replydeal(QNetworkReply *reply);
    void jsondeal_to(QByteArray);
    void jsondeal_tom(QByteArray);
    void jsondeal_week(QByteArray);
    void jsondeal_mon(QByteArray);
    void jsondeal_year(QByteArray);
signals:

private:
    Ui::xingzuo *ui;
    QNetworkAccessManager *manager;
    QString namestr;
    QString datetimestr;
    QString allstr;
    QString colorstr;
    QString healthstr;
    QString lovestr;
    QString moneystr;
    QString numberstr;
    QString qfriendstr;
    QString summarystr;
    QString workstr;
    QString path;
    QStringList list;
    QString str;
    QString weekstr;
    QString jobstr;
    QNetworkRequest req;
    QString string;


private slots:

    void on_today_pressed();
    void on_tomorrow_pressed();
    void on_week_pressed();
    void on_month_pressed();
    void on_year_pressed();
    void on_close_clicked();

    void on_min_clicked();

protected:
    QPoint p;
    void mouseMoveEvent(QMouseEvent *e);
    void mousePressEvent(QMouseEvent *e);


};

#endif // XINGZUO_H
